import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/machinestatus'
    },
    { // 设备首页
      path: '/machinestatus',
      name: 'machinestatus',
      component: () => import('./views/light/MachineStatus.vue')
    },
    { // 设备列表
      path: '/machineList',
      name: 'machineList',
      component: () => import('./views/light/MachineList.vue')
    },
    { // 编辑设备
      path: '/machineeidt',
      name: 'machineeidt',
      component: () => import('./views/light/MachineEidt.vue')
    },
    { // 智慧照明
      path: '/light',
      name: 'light',
      component: () => import('./views/light/Light.vue')
    },
    { // 智慧照明--统计分析
      path: '/count',
      name: 'count',
      component: () => import('./views/light/Count.vue')
    },
    { // 环境监测
      path: '/envir',
      name: 'envir',
      component: () => import('./views/light/Envir.vue')
    },
    { // 环境监测--数据详情
      path: '/envirdetail',
      name: 'envirdetail',
      component: () => import('./views/light/EnvirDetail.vue')
    },
    { // 视频监控
      path: '/monitor',
      name: 'monitor',
      component: () => import('./views/light/Monitor.vue')
    },
    { // 信息发布
      path: '/publish',
      name: 'publish',
      component: () => import('./views/light/Publish.vue')
    },
    { // 紧急呼叫
      path: '/call',
      name: 'call',
      component: () => import('./views/light/Call.vue')
    },
    { // 公共广播
      path: '/Radio',
      name: 'Radio',
      component: () => import('./views/light/Radio.vue')
    }
  ]
})
